# set0 = {10, 20, 30}
# set1 = set()
# print(type(set0), type(set1))
# # 无序不重复
# set3 = {10, 20, 30, 30, 20, 10, 5, 6}
# print(set3)

# l0 = [1, 5, 6, 2, 1]
# set4 = set(l0)
# print(set4)
# l1 = list(set4)
# print(l1)


# set5 = {1, 3, 5, 6, 9, 4, }
# for e in set5:
#     print(e)


# set6 = {1, 3}
# print(id(set6))
# set6.add(5)
# print(id(set6))
# set6.update({3, 4, 5})

# set6.remove(40)
# set6.discard(40)
# set6.clear()

# r = set6.pop()
# print(r)

# print(set6)


# set7 = {1, 3, 5}
# set8 = {3, 5, 7}
#
# print(set7 & set8, set7 | set8, set7 - set8, set8 - set7)


# set9 = set7.intersection(set8)
# print(set7, set8, set9)

# set7.intersection_update(set8)
# print(set7)

# set10 = set7.union(set8)
# print(set7, set8, set10)

# set11 = set7.difference(set8)
# print(set7, set8, set11)
# set12 = set8.difference(set7)
# print(set12)

# set7.difference_update(set8)
# print(set7)